package com.ostrich.cloud.ostrichOrderService.service.service;

import com.ostrich.cloud.common.result.PageResult;
import com.ostrich.cloud.ostrichOrderService.infra.model.ShoppingCar;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ostrich.cloud.ostrichOrderService.infra.param.AddGoodsCarParamInfra;
import com.ostrich.cloud.ostrichOrderService.model.dto.ShoppingCarDto;
import io.seata.core.exception.TransactionException;

/**
 * <p>
 * 购物车id 服务类
 * </p>
 *
 * @author Lucas
 * @since 2022-10-26
 */
public interface ShoppingCarService extends IService<ShoppingCar> {
    void addGoodsCar(AddGoodsCarParamInfra param) throws TransactionException;
    void delGoodsCar(int customerId,int goodsId,int goodsNum) throws TransactionException;
    PageResult<ShoppingCarDto> searchCar(Integer customerId, Integer current, Integer size);
}
